import utils.DownloadImage;

import java.io.IOException;

/**
 * @Author hhy
 * @Date 2020/9/23 19:50
 */
public class Main {
    public static void main(String[] args) throws IOException {
        String url = "https://i.pximg.net/img-master/img/2020/09/17/18/11/19/84430212_p0_master1200.jpg";
        String path = "E:";
        String filename = "luosaliya.jpg";
        DownloadImage downloadImage = new DownloadImage();
        //需要传入三个参数，一个是图片的下载地址，一个是文件存放的位置，还有一个是文件名
        downloadImage.downImage(url,path,filename);

    }
}
